<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var a=Math.floor(Math.random()*256);
        var b=Math.floor(Math.random()*256);
        var c=Math.floor(Math.random()*256);
        var d=Math.random()*1;
        var e=d.toPrecision(1);
        var color=`rgba(${a},${b},${c},${e})`;
         console.log(color);
         document.body.style.backgroundColor=color;
    </script>
</body>
</html>